package com.company.test32;

import java.util.EventObject;

/**
 * Created by v on 16-12-8.
 */
public class EnrollmentEvent extends EventObject {
    private String studentToEnroll;
    private int enrollmentCap;

    public EnrollmentEvent(Object source,String studentToEnroll,
                           int enrollmentCap){
        super(source);
        this.studentToEnroll=studentToEnroll;
        this.enrollmentCap=enrollmentCap;
    }

    public String getStudentToEnroll(){
        return studentToEnroll;
    }

    public long getEnrollmentCap(){
        return enrollmentCap;
    }
}
